package com.qiniuyun.threedgenerator.config;



import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "app")
public class MyAppConfig {

    private Storage storage = new Storage();
    private ThirdPartyApi thirdPartyApi = new ThirdPartyApi();

    @Data
    public static class Storage {
        private String type = "local";
        private String localPath = "./uploads";
    }

    @Data
    public static class ThirdPartyApi {
        private boolean mockMode = false;
    }
}